<!doctype html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>优化归属计算</title>
    <link rel="stylesheet" href="{{ url_for('static', filename='styles.css') }}">
  </head>
  <body>
    <div class="container">
      <h1>优化归属计算</h1>
      <form method="post" action="{{ url_for('upload_files') }}" enctype="multipart/form-data">
        <div class="form-group">
          <label for="commission_file">选择提成表</label>
          <input type="file" name="commission_file" id="commission_file">
        </div>
        
        <div class="form-group">
          <label for="search_file">选择搜查表</label>
          <input type="file" name="search_file" id="search_file">
        </div>
        
        <div class="form-group">
          <label>平台:</label><br>
          <label class="checkbox-inline"><input type="checkbox" name="platforms" value="FB"> FB</label>
          <label class="checkbox-inline"><input type="checkbox" name="platforms" value="TT"> TT</label>
          <label class="checkbox-inline"><input type="checkbox" name="platforms" value="KW"> KW</label>
          <label class="checkbox-inline"><input type="checkbox" name="platforms" value="GG"> GG</label>
        </div>
        
        <button id="myButton" type="submit" onclick="changeButtonText()">执行</button>
      </form>
    </div>
  </body>
</html>

<script>
  function changeButtonText() {
      // 获取按钮元素
      var button = document.getElementById("myButton");
      // 修改按钮文本
      button.innerText = "正在执行...";
  }
</script>